package com.contest.util;

import com.contest.service.*;
import redis.clients.jedis.Jedis;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;

public class WsNeed {
    private BettingRecordService bettingRecordService;
    private GameInfoService gameInfoService;
    private RaceInfoService raceInfoService;
    private ClanInfoService clanInfoService;
    private UserInfoService userInfoService;
    private RoomInfoService roomInfoService;
    private SessionInfoService sessionInfoService;
    private IdWorker idWorker;
    private Jedis jedis;

    private static WsNeed wsNeed = new WsNeed();

    private WsNeed() {
    }

    public Jedis getJedis() {
        return jedis;
    }

    public void setJedis(Jedis jedis) {
        this.jedis = jedis;
    }

    public static WsNeed getInstance() {
        return wsNeed;
    }


    public BettingRecordService getBettingRecordService() {
        return bettingRecordService;
    }

    public void setBettingRecordService(BettingRecordService bettingRecordService) {
        this.bettingRecordService = bettingRecordService;
    }

    public GameInfoService getGameInfoService() {
        return gameInfoService;
    }

    public void setGameInfoService(GameInfoService gameInfoService) {
        this.gameInfoService = gameInfoService;
    }

    public RaceInfoService getRaceInfoService() {
        return raceInfoService;
    }

    public void setRaceInfoService(RaceInfoService raceInfoService) {
        this.raceInfoService = raceInfoService;
    }

    public ClanInfoService getClanInfoService() {
        return clanInfoService;
    }

    public void setClanInfoService(ClanInfoService clanInfoService) {
        this.clanInfoService = clanInfoService;
    }

    public UserInfoService getUserInfoService() {
        return userInfoService;
    }

    public void setUserInfoService(UserInfoService userInfoService) {
        this.userInfoService = userInfoService;
    }

    public RoomInfoService getRoomInfoService() {
        return roomInfoService;
    }

    public void setRoomInfoService(RoomInfoService roomInfoService) {
        this.roomInfoService = roomInfoService;
    }

    public SessionInfoService getSessionInfoService() {
        return sessionInfoService;
    }

    public void setSessionInfoService(SessionInfoService sessionInfoService) {
        this.sessionInfoService = sessionInfoService;
    }

    public IdWorker getIdWorker() {
        return idWorker;
    }

    public void setIdWorker(IdWorker idWorker) {
        this.idWorker = idWorker;
    }
}
